<?php
if (!defined('BASEPATH'))
    exit('No direct script access allowed');

class Customer extends MY_Controller {

    public function __construct()
    {
        parent::__construct();
		$this->load->library('tank_auth');
		//$this->lang->load('tank_auth');
        if(!$this->tank_auth->is_logged_in())
            redirect('administrator/auth');
        
    }

    public function index($act = false){
       if(!$act){
            $users = $this->db->get('customer')->result();
            $this->assign('users',$users);
       }else{
        $this->db->where('id',$this->uri->segment(6));
            $user = $this->db->get('customer')->row();
            $this->assign('user',$user);
        
       }
    }
    /**
     * Default function
     */
    

}